package com.xyht.medicine_management_system.modules.stock.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 药品库存记录
 * </p>
 *
 * @author XYHT
 * @since 2023-11-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mms_medicine_stock_log")
@ApiModel(value="MmsMedicineStockLog对象", description="药品库存记录")
public class MmsMedicineStockLog implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "库存id")
    private String stockId;

    @ApiModelProperty(value = "药品id")
    private String medicineId;

    @ApiModelProperty(value = "库存标识 [1:后台修改数据 2:销售修改数据(用于统计销售量)]")
    private Integer stockFlag;

    @ApiModelProperty(value = "药品编码")
    private String medicineCode;

    @ApiModelProperty(value = "药品姓名")
    private String medicineName;

    @ApiModelProperty(value = "入库数量")
    private Integer incomeQuantity;

    @ApiModelProperty(value = "出库数量")
    private Integer outQuantity;

    @ApiModelProperty(value = "入库时间")
    private Date incomeDate;

    @ApiModelProperty(value = "出库时间")
    private Date outDate;

    @ApiModelProperty(value = "状态(1:入库 2:出库)")
    private Integer stockType;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "创建人")
    private String userId;

    @ApiModelProperty(value = "厂家")
    private String manufacturer;

    @ApiModelProperty(value = "检验报告")
    private String inspectionReport;

    @ApiModelProperty(value = "首营资料")
    private String firstCampInformation;

    @ApiModelProperty(value = "单位")
    private String medicineUnit;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除：0：未删除 1：已删除")
    @TableLogic
    private Integer isDeleted;


}
